create_buffer

cpprb.create_buffer(size, env_dict=None, *, prioritized=False, **kwargs)

Create specified version of replay buffer

Parameters
  • size (int) – buffer size

  • env_dict (dict of dict, optional) – dictionary specifying environments. The keies of env_dict become environment names. The values of env_dict, which are also dict, defines “shape” (default 1) and “dtypes” (fallback to default_dtype)

  • prioritized (bool, optional) – create prioritized version replay buffer, default = False

Returns

Return type

one of the replay buffer classes

Raises

NotImplementedError – If you specified not implemented version replay buffer

Note

Any other keyword arguments are passed to replay buffer constructor.